package com.smart.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.smart.dao.PageRequest;

@Controller
public class CacheController extends BaseController{
	@RequestMapping(value = "admin/cache/clean/dict")
	public @ResponseBody String removeDictCache(PageRequest pageRequest, Model model){
		dictService.removeCache();
		return "OK";
	}
	
	@RequestMapping(value = "admin/cache/clean/doc")
	public @ResponseBody String removeDocCache(PageRequest pageRequest, Model model){
		docService.removeCache();
		return "OK";
	}
	
	@RequestMapping(value = "admin/cache/clean/menu")
	public @ResponseBody String removeMenuCache(PageRequest pageRequest, Model model){
		menuService.removeCache();
		return "OK";
	}
}
